﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MovieDetails.aspx.cs" Inherits="OnlineMovieTicket.WebForms.Movies.MovieDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ctpHead" runat="server">
    <style type="text/css">
        .style1
        {
            text-align: left;
        }
        .style2
        {
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctpBody" runat="server">
<table width="980px" cellpadding="6" cellspacing="6" class="pageBackGround" >
<tr><td>
   <h2 class="fontWhite">&nbsp;&nbsp;MOVIE DETAIL</h2>
            <table class="fontWhite" cellpadding="6" cellspacing="6">   
                <tr><td colspan="3"><asp:TextBox ID="txtMovieName" runat="server" Width="272px" BackColor="#666633" ForeColor="White" ReadOnly="True"></asp:TextBox></td></tr> 
                <tr><td colspan="3"><asp:TextBox ID="txtMovieDetail" runat="server" Height="113px" ReadOnly="True" TextMode="MultiLine" Width="548px" BackColor="#666633" ForeColor="White"></asp:TextBox></td></tr>   
                <tr><td><asp:Button ID="btnReview" runat="server" Height="22px" onclick="btnReview_Click" Text="Write Review" Width="123px" CssClass="btn"/></td></tr>  
                <tr><td><asp:GridView ID="gdReviewDetail" runat="server" AutoGenerateColumns="False" 
                                                    DataSourceID="objMovieReview" Width="552px" CssClass="trGrid">
                                                     <HeaderStyle BackColor="#cc9900" HorizontalAlign="Center"/>
                                                     <AlternatingRowStyle  BackColor="#767056"/>
                                                     <EditRowStyle BackColor="#767056" />
                                                     <Columns>
                                                        <asp:TemplateField HeaderText="Customer Review">
                                                            <ItemTemplate>
                                                                <div class="style1">
                                                                    &nbsp;&nbsp;<asp:Label ID="Label6" runat="server" Text="Member :"></asp:Label>
                                                                    &nbsp;&nbsp; <asp:Label ID="Label1" runat="server" Text='<%# Eval("CustomerName") %>'></asp:Label>
                                                                    <br />
                                                                    &nbsp;
                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("DetailReview") %>'></asp:Label>
                                                                    <br />
                                                                    &nbsp;&nbsp;<asp:Label ID="Label3" runat="server" 
                                                                        Text='<%# Eval("ReviewDate") %>'></asp:Label>
                                                                    &nbsp;&nbsp; <asp:Label ID="Label5" runat="server" Text='Rating :'></asp:Label>
                                                                    &nbsp;<asp:Label ID="Label4" runat="server" Text='<%# Eval("Rating") %>'></asp:Label>
                                                                </div>
                                                            </ItemTemplate>
                                                            <HeaderStyle BackColor="#333300" Font-Size="12pt" ForeColor="White"                                                     HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <EmptyDataTemplate>
                                                        <div class="style1">
                                                        </div>
                                                    </EmptyDataTemplate>
                                                </asp:GridView>
                                         </td></tr>                
                                        </table>
                                      </td>
                                      </tr>
                                      <tr><td><asp:ObjectDataSource ID="objMovieReview" runat="server" 
                                                                                SelectMethod="GetMovieReviews" 
                                            TypeName="OnlineMovieTicket.Services.Services.MovieReviewService">
                                            <SelectParameters>
                                                <asp:QueryStringParameter DefaultValue="" Name="MovieCode" 
                                                    QueryStringField="MVCode" Type="Int32" />
                                            </SelectParameters>
                                        </asp:ObjectDataSource></td></tr>
 </table>


     
                                  
                                         
                                               
          
</asp:Content>
